using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using BUS;
using DAL;
using Entities;
using Utility;

public partial class admin_ThemDanhMuc : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btn_them_Click(object sender, EventArgs e)
    {
        try
        {
            tbLoaiMH loaihang = new tbLoaiMH();

            loaihang.Ten = txt_tenloai.Text;

            tbLoaiMHBUS.Insert(loaihang);
        }
        catch (Exception ex)
        { 
        }
        Response.Redirect("~/admin/DanhSachDanhMuc.aspx");
        Response.Redirect(Request.RawUrl);

    }
}
